#ifndef vme_sis_h
#define vme_sis_h

#include <sys/types.h>

extern "C" {
#include "sis3100_vme_calls.h"
#include "sis3100_dma.h"
}

#include <string>
#include <sstream>
#include "IOError.h"

using namespace std;

void readA16D16(int handle, u_int16_t addr, u_int16_t *dest);
void readA32D16(int handle, u_int32_t addr, u_int16_t *dest);
void readA32D32(int handle, u_int32_t addr, u_int32_t *dest);
void readA16D32DMA(int handle,u_int32_t addr,u_int32_t *buf,u_int32_t count);
void readA32D32DMA(int handle,u_int32_t addr,u_int32_t *buf,u_int32_t count);

void writeA32D16(int handle,u_int32_t addr,u_int16_t d);

#endif
